package com.xhxi.photobooker.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

// 注释掉Spring WebSocket配置，因为现在使用Netty
// @Configuration
public class WebSocketConfig {
    // 自动注册 @ServerEndpoint 注解的 WebSocket 端点
    // @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        System.out.println("[WebSocketConfig] ServerEndpointExporter init");
        ServerEndpointExporter exporter = new ServerEndpointExporter();
        return exporter;
    }
}